/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action.retail;

import static com.opensymphony.xwork2.Action.SUCCESS;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import java.util.Map;
import model.Customer;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

/**
 *
 * @author Thai Ha Cong
 */
@Namespace("/Member")
public class ViewProfileAction extends ActionSupport {
    
    private Customer customer;
    
    public ViewProfileAction() {
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }
    
//    @Override
//    @Action(value = "viewProfile", results = {
//        @Result(name = "success", location = "/member/editProfile.jsp")
//    })
//    public String execute() throws Exception {
//        Map session = ActionContext.getContext().getSession();
//        
//        customer = (Customer) session.get("currentCustomer");
//
//        return SUCCESS;
//    }
}